<div class="title"> <?= __('Chat') ?>
<?php if(isset($ch)): ?>
&nbsp;&nbsp;&nbsp;<?= link_to(__('Отменить вызов'),'chat/delete?id='.$ch->getId()) ?>
<?php endif ?>
</div>

<?php if($user_from->getGender()=='m'):?>
<?php include_component('chat','show',array('from_user'=>$user_from, 'to_user'=>$user))?>

<?php else: ?>
<script src="<?php echo sfConfig::get('app_site_url') ?>/webmessenger/functions.js" type="text/javascript" language="javascript"></script>
<script>
    up_launchWM('<?php echo sfContext::getInstance()->getUser()->getAttribute( 'user_id', null, 'sfGuardSecurityUser' )?>','<?php echo $user->getId()?>');
</script>

<?php endif ?>

     <?php if($ch->getWithVideo()==true):?>
      <span style="color: green"><?php echo __('chat with video')?></span>
     <?php else: ?>
       <span style="color: red"><?php echo __('chat without video')?></span>
     <?php endif ?>

<?php if($user_from->getGender()=='m'): ?>
<?php include_component('chat','money',array('ch'=>$ch,'user_woman'=>$user))?>
<?php endif ?>
<br />
